package com.shuda.common.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * 分页视图对象
 */
@Data
@Schema(description = "分页视图对象")
public class PageVO<T> {

    @Schema(description = "数据列表")
    private List<T> records;

    @Schema(description = "总条数")
    private Long total;

    @Schema(description = "页码")
    private Long current;

    @Schema(description = "每页条数")
    private Long size;

    @Schema(description = "总页数")
    private Long pages;
}